import java.util.Scanner;

public class Demo04 {

    public static void main(String[] args) {
        // 某歌唱比赛，需要开发一个系统：可以录入6名评委的打分，录入完毕后立即输出平均分做选手得分
        double[] scores = new double[6];
        Scanner sc = new Scanner(System.in);
        for (int i = 1; i <= 6; i ++) {
            System.out.println("请输入第" + i + "个评委的成绩：");
            double score = sc.nextDouble();
            scores[i - 1] = score;
        }
        double sum = 0;
        double avg = 0;
        for (int i = 0; i < scores.length; i++) {
            System.out.println(scores[i]);
            sum += scores[i];
        }
        avg = sum / scores.length;
        System.out.println("选手的成绩是" + avg);
    }
}
